<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'reply';
if($_RQ['op']=='reply'){
	$vote_xms=pdo_getall('jy_h5game_opt',array('uniacid'=>$_SESSION['uniacid'],'rid'=>$_SESSION['action_id'],'status'=>1));
	if($vote_xms){
		foreach($vote_xms as &$opt){
			$opt['nums']=pdo_count('jy_h5game_fans',array('rid'=>$_SESSION['action_id'],'uniacid'=>$_SESSION['uniacid'],'optid'=>$opt['id']));
			$opt['img']=$opt['thumb'];
			$opt['name']=$opt['title'];
		}
	}
	$return['post']=array('rid'=>$_SESSION['action_id']);
	$return['vote_xms']=$vote_xms;
	//$votes=array(array('id'=>'1','name'=>'选项1','img'=>'../pq2bAa/images/1/2019/05/3.jpg','nums'=>'10'),array('id'=>'1','name'=>'选项2','img'=>'','nums'=>'10'));
	$total=pdo_count('jy_h5game_fans',array('rid'=>$_SESSION['action_id'],'uniacid'=>$_SESSION['uniacid']));
	include $this->template('games/h5_vote/index1','mobile');
	exit;
}
